<!DOCTYPE html>
<html lang="en" style="height:100%;">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>客户资料上传</title>
  <link rel="stylesheet" href="__PUBLIC__/script/jquery-weui/dist/lib/weui.min.css">
  <link rel="stylesheet" href="__PUBLIC__/script/jquery-weui/dist/css/jquery-weui.min.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/base.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/new_pingu.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/last_pingu.css">
  <link rel="stylesheet" href="__PUBLIC__/styles/panel_p_data.css">
</head>
<body style="height:100%;overflow:hidden;">

  <div class="hiddenForm">
    <form autocomplete="off" action="__PUBLIC__/post_test" id='base' method="post"></form>
    <form autocomplete="off" action="{:U('WebUser/panel_p_data')}" id='file' method="post" enctype='multipart/form-data'></form>
    <input type="hidden" name="文件上传地址" value="{:U('WebUser/ajax_re_file')}" id="fileUploadAjaxURL">
  </div>
  <div class="container" style='height:100%;overflow:auto;'>
    <div class="panel_wran">
      温馨提示：填写客户资料后才能进入留言板块
    </div>

    <div class="required">
      <!-- 手机要额外给 -->
      <input required type="text" form='file' name="kehu_name" id="kehu_name" class="long_input kehu_name" value='{$web_data.kehu_name}' placeholder="客户姓名或手机号码（建议手机号码方便查阅记录）">
      <input inori-data = 'required' type="text" form='base' name="kehu_edu" id="kehu_edu" class="long_input kehu_edu" placeholder="客户贷款需求金额（万）">
      <input inori-data = 'required' type="text" form='base' name="kehu_plan_point" id="kehu_plan_point" class="long_input kehu_plan_point" placeholder="预计佣金点数">
    </div>

    <div class="weui_cells">
      <!-- 收入方式 -->
      <div class="tag_title weui_cell">收入方式</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='工薪族' type="radio" name="kehu_shouru_way" id="kehu_shouru_way_1" class="check_tag kehu_shouru_way">
          <label for="kehu_shouru_way_1" class="label_check_tag"><span><span>工薪族</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='自雇人士' type="radio" name="kehu_shouru_way" id="kehu_shouru_way_2" class="check_tag kehu_shouru_way">
          <label for="kehu_shouru_way_2" class="label_check_tag"><span><span>自雇人士</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='自由职业/无业' type="radio" name="kehu_shouru_way" id="kehu_shouru_way_3" class="check_tag kehu_shouru_way">
          <label for="kehu_shouru_way_3" class="label_check_tag"><span><span>自由职业&#47;无业</span></span></label>
        </div>
      </div>
    </div>
    <div class="weui_cells" id='kehu_shouru_way_1_only'>
      <!-- 单位性质 -->
      <div class="tag_title weui_cell">单位性质</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='个体户' type="radio" name="danwei_xingzhi" id="danwei_xingzhi_1" class="check_tag">
          <label for="danwei_xingzhi_1" class="label_check_tag"><span><span>个体户</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='普通私企' type="radio" name="danwei_xingzhi" id="danwei_xingzhi_2" class="check_tag">
          <label for="danwei_xingzhi_2" class="label_check_tag"><span><span>普通私企</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='优质企业' type="radio" name="danwei_xingzhi" id="danwei_xingzhi_3" class="check_tag">
          <label for="danwei_xingzhi_3" class="label_check_tag"><span><span>优质企业</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='正编公务员' type="radio" name="danwei_xingzhi" id="danwei_xingzhi_4" class="check_tag">
          <label for="danwei_xingzhi_4" class="label_check_tag"><span><span>正编公务员</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='普通院校' type="radio" name="danwei_xingzhi" id="danwei_xingzhi_5" class="check_tag">
          <label for="danwei_xingzhi_5" class="label_check_tag"><span><span>普通院校</span></span></label>
        </div>
      </div>
      <!-- 现单位工作时长 -->
      <div class="tag_title weui_cell">现单位工作时长</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='3个月以下' type="radio" name="danwei_work_time" id="danwei_work_time_1" class="check_tag">
          <label for="danwei_work_time_1" class="label_check_tag"><span><span>3个月以下</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='3-6个月' type="radio" name="danwei_work_time" id="danwei_work_time_2" class="check_tag">
          <label for="danwei_work_time_2" class="label_check_tag"><span><span>3-6个月</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='6-12个月' type="radio" name="danwei_work_time" id="danwei_work_time_3" class="check_tag">
          <label for="danwei_work_time_3" class="label_check_tag"><span><span>6-12个月</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='12-24个月' type="radio" name="danwei_work_time" id="danwei_work_time_4" class="check_tag">
          <label for="danwei_work_time_4" class="label_check_tag"><span><span>12-24个月</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='24个月以上' type="radio" name="danwei_work_time" id="danwei_work_time_5" class="check_tag">
          <label for="danwei_work_time_5" class="label_check_tag"><span><span>24个月以上</span></span></label>
        </div>
      </div>
      <!-- 工资方式 -->
      <div class="tag_title weui_cell">工资方式</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='代发工资' type="radio" name="pay_way" id="pay_way_1" class="check_tag">
          <label for="pay_way_1" class="label_check_tag"><span><span>代发工资</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='固定转账工资' type="radio" name="pay_way" id="pay_way_2" class="check_tag">
          <label for="pay_way_2" class="label_check_tag"><span><span>固定转账工资</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='现金工资' type="radio" name="pay_way" id="pay_way_3" class="check_tag">
          <label for="pay_way_3" class="label_check_tag"><span><span>现金工资</span></span></label>
        </div>
      </div>
      <!-- 现单位工资金额 -->
      <div class="tag_title weui_cell">现单位工资金额</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='9000-11000' type="radio" name="pay_source" id="pay_source_1" class="check_tag">
          <label for="pay_source_1" class="label_check_tag"><span><span>9000-11000</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='11000-13000' type="radio" name="pay_source" id="pay_source_2" class="check_tag">
          <label for="pay_source_2" class="label_check_tag"><span><span>11000-13000</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='13000-15000' type="radio" name="pay_source" id="pay_source_3" class="check_tag">
          <label for="pay_source_3" class="label_check_tag"><span><span>13000-15000</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='15000以上' type="radio" name="pay_source" id="pay_source_4" class="check_tag">
          <label for="pay_source_4" class="label_check_tag"><span><span>15000以上</span></span></label>
        </div>
      </div>
    </div>
    <div class="weui_cells" id='kehu_shouru_way_2_only'>

      <!-- 营业执照年限 -->
      <div class="tag_title weui_cell">营业执照年限</div>
      <div inori-data='required' class="tag_wrap weui_cell">
        <div class="tag_container">
          <input form='base' value='无执照' type="radio" name="business_lic" id="business_lic_1" class="check_tag">
          <label for="business_lic_1" class="label_check_tag"><span><span>无执照</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='个体户' type="radio" name="business_lic" id="business_lic_2" class="check_tag">
          <label for="business_lic_2" class="label_check_tag"><span><span>个体户</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='3个月以下' type="radio" name="business_lic" id="business_lic_3" class="check_tag">
          <label for="business_lic_3" class="label_check_tag"><span><span>3个月以下</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='3-6个月以下' type="radio" name="business_lic" id="business_lic_4" class="check_tag">
          <label for="business_lic_4" class="label_check_tag"><span><span>3-6个月以下</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='6-12个月以下' type="radio" name="business_lic" id="business_lic_5" class="check_tag">
          <label for="business_lic_5" class="label_check_tag"><span><span>6-12个月以下</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='12-24个月以下' type="radio" name="business_lic" id="business_lic_6" class="check_tag">
          <label for="business_lic_6" class="label_check_tag"><span><span>12-24个月以下</span></span></label>
        </div>
        <div class="tag_container">
          <input form='base' value='24个月以上' type="radio" name="business_lic" id="business_lic_7" class="check_tag">
          <label for="business_lic_7" class="label_check_tag"><span><span>24个月以上</span></span></label>
        </div>
      </div>
    </div>
    <div class="weui_cells">
        <!-- 社保年限 -->
        <div class="tag_title weui_cell">社保年限</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='无社保' type="radio" name="social_sec" id="social_sec_1" class="check_tag">
            <label for="social_sec_1" class="label_check_tag"><span><span>无社保</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3个月以下' type="radio" name="social_sec" id="social_sec_3" class="check_tag">
            <label for="social_sec_3" class="label_check_tag"><span><span>3个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3-6个月以下' type="radio" name="social_sec" id="social_sec_4" class="check_tag">
            <label for="social_sec_4" class="label_check_tag"><span><span>3-6个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='6-12个月以下' type="radio" name="social_sec" id="social_sec_5" class="check_tag">
            <label for="social_sec_5" class="label_check_tag"><span><span>6-12个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='12-24个月以下' type="radio" name="social_sec" id="social_sec_6" class="check_tag">
            <label for="social_sec_6" class="label_check_tag"><span><span>12-24个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='24个月以上' type="radio" name="social_sec" id="social_sec_7" class="check_tag">
            <label for="social_sec_7" class="label_check_tag"><span><span>24个月以上</span></span></label>
          </div>
        </div>
        <!-- 公积金年限 -->
        <div class="tag_title weui_cell">公积金年限</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='无社保' type="radio" name="fund_time" id="fund_time_1" class="check_tag">
            <label for="fund_time_1" class="label_check_tag"><span><span>无社保</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3个月以下' type="radio" name="fund_time" id="fund_time_3" class="check_tag">
            <label for="fund_time_3" class="label_check_tag"><span><span>3个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3-6个月以下' type="radio" name="fund_time" id="fund_time_4" class="check_tag">
            <label for="fund_time_4" class="label_check_tag"><span><span>3-6个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='6-12个月以下' type="radio" name="fund_time" id="fund_time_5" class="check_tag">
            <label for="fund_time_5" class="label_check_tag"><span><span>6-12个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='12-24个月以下' type="radio" name="fund_time" id="fund_time_6" class="check_tag">
            <label for="fund_time_6" class="label_check_tag"><span><span>12-24个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='24个月以上' type="radio" name="fund_time" id="fund_time_7" class="check_tag">
            <label for="fund_time_7" class="label_check_tag"><span><span>24个月以上</span></span></label>
          </div>
        </div>
        <!-- 平均月流水 -->
        <div class="tag_title weui_cell">平均月流水</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='5000以下' type="radio" name="avg_cost" id="avg_cost_1" class="check_tag">
            <label for="avg_cost_1" class="label_check_tag"><span><span>5000以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='10000-20000' type="radio" name="avg_cost" id="avg_cost_3" class="check_tag">
            <label for="avg_cost_3" class="label_check_tag"><span><span>10000-20000</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='20000-30000' type="radio" name="avg_cost" id="avg_cost_4" class="check_tag">
            <label for="avg_cost_4" class="label_check_tag"><span><span>20000-30000</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='30000-40000' type="radio" name="avg_cost" id="avg_cost_5" class="check_tag">
            <label for="avg_cost_5" class="label_check_tag"><span><span>30000-40000</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='40000-50000' type="radio" name="avg_cost" id="avg_cost_6" class="check_tag">
            <label for="avg_cost_6" class="label_check_tag"><span><span>40000-50000</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='50000以上' type="radio" name="avg_cost" id="avg_cost_7" class="check_tag">
            <label for="avg_cost_7" class="label_check_tag"><span><span>50000以上</span></span></label>
          </div>
        </div>
        <!-- 信用卡使用率 -->
        <!-- <div class="tag_title weui_cell">信用卡使用率</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="credit_card" id="credit_card_1" class="check_tag">
            <label for="credit_card_1" class="label_check_tag"><span><span>无信用卡/白户</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="credit_card" id="credit_card_3" class="check_tag">
            <label for="credit_card_3" class="label_check_tag"><span><span>30%以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="credit_card" id="credit_card_4" class="check_tag">
            <label for="credit_card_4" class="label_check_tag"><span><span>30%~50%</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="credit_card" id="credit_card_5" class="check_tag">
            <label for="credit_card_5" class="label_check_tag"><span><span>50%~80%</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="credit_card" id="credit_card_7" class="check_tag">
            <label for="credit_card_7" class="label_check_tag"><span><span>80%以上</span></span></label>
          </div>
        </div> -->
        <!-- 还款中信用贷负债 -->
        <!-- <div class="tag_title weui_cell">还款中信用贷负债</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_credit" id="paiding_credit_1" class="check_tag">
            <label for="paiding_credit_1" class="label_check_tag"><span><span>无信用贷/白户</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="paiding_credit" id="paiding_credit_3" class="check_tag">
            <label for="paiding_credit_3" class="label_check_tag"><span><span>10万以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_credit" id="paiding_credit_4" class="check_tag">
            <label for="paiding_credit_4" class="label_check_tag"><span><span>10万~30万</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_credit" id="paiding_credit_5" class="check_tag">
            <label for="paiding_credit_5" class="label_check_tag"><span><span>30万~50万</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_credit" id="paiding_credit_7" class="check_tag">
            <label for="paiding_credit_7" class="label_check_tag"><span><span>50万~100万</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='8' type="radio" name="paiding_credit" id="paiding_credit_8" class="check_tag">
            <label for="paiding_credit_8" class="label_check_tag"><span><span>100万以上</span></span></label>
          </div>
        </div> -->
        <!-- 还款中小额笔数 -->
        <!-- <div class="tag_title weui_cell">还款中小额笔数</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_xiaoe" id="paiding_xiaoe_1" class="check_tag">
            <label for="paiding_xiaoe_1" class="label_check_tag"><span><span>无小额/白户</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="paiding_xiaoe" id="paiding_xiaoe_3" class="check_tag">
            <label for="paiding_xiaoe_3" class="label_check_tag"><span><span>1笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_xiaoe" id="paiding_xiaoe_4" class="check_tag">
            <label for="paiding_xiaoe_4" class="label_check_tag"><span><span>1~3笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_xiaoe" id="paiding_xiaoe_5" class="check_tag">
            <label for="paiding_xiaoe_5" class="label_check_tag"><span><span>4~8笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_xiaoe" id="paiding_xiaoe_7" class="check_tag">
            <label for="paiding_xiaoe_7" class="label_check_tag"><span><span>8笔以上</span></span></label>
          </div>
        </div> -->
        <!-- 还款中网贷笔数 -->
        <!-- <div class="tag_title weui_cell">还款中网贷笔数</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_net" id="paiding_net_1" class="check_tag">
            <label for="paiding_net_1" class="label_check_tag"><span><span>无网贷/白户</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="paiding_net" id="paiding_net_3" class="check_tag">
            <label for="paiding_net_3" class="label_check_tag"><span><span>1笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_net" id="paiding_net_4" class="check_tag">
            <label for="paiding_net_4" class="label_check_tag"><span><span>1~3笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_net" id="paiding_net_5" class="check_tag">
            <label for="paiding_net_5" class="label_check_tag"><span><span>4~8笔</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_net" id="paiding_net_7" class="check_tag">
            <label for="paiding_net_7" class="label_check_tag"><span><span>8笔以上</span></span></label>
          </div>
        </div> -->
        <!-- 60天内查询 -->
        <!-- <div class="tag_title weui_cell">60天内查询</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="check_in60" id="check_in60_1" class="check_tag">
            <label for="check_in60_1" class="label_check_tag"><span><span>无查询/不清楚</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="check_in60" id="check_in60_3" class="check_tag">
            <label for="check_in60_3" class="label_check_tag"><span><span>3次以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="check_in60" id="check_in60_4" class="check_tag">
            <label for="check_in60_4" class="label_check_tag"><span><span>4~6次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="check_in60" id="check_in60_5" class="check_tag">
            <label for="check_in60_5" class="label_check_tag"><span><span>6~8次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="check_in60" id="check_in60_7" class="check_tag">
            <label for="check_in60_7" class="label_check_tag"><span><span>8次以上</span></span></label>
          </div>
        </div> -->
        <!-- 户籍 -->
        <div class="tag_title weui_cell">户籍</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='本地户口' type="radio" name="register" id="register_1" class="check_tag">
            <label for="register_1" class="label_check_tag"><span><span>本地户口</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='外地户口' type="radio" name="register" id="register_3" class="check_tag">
            <label for="register_3" class="label_check_tag"><span><span>外地户口</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='港澳台/国外' type="radio" name="register" id="register_4" class="check_tag">
            <label for="register_4" class="label_check_tag"><span><span>港澳台/国外</span></span></label>
          </div>
        </div>
        <!-- 婚姻 -->
        <!-- <div class="tag_title weui_cell">婚姻</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="marriage" id="marriage_1" class="check_tag">
            <label for="marriage_1" class="label_check_tag"><span><span>未婚</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="marriage" id="marriage_3" class="check_tag">
            <label for="marriage_3" class="label_check_tag"><span><span>已婚</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="marriage" id="marriage_4" class="check_tag">
            <label for="marriage_4" class="label_check_tag"><span><span>离异</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="marriage" id="marriage_5" class="check_tag">
            <label for="marriage_5" class="label_check_tag"><span><span>丧偶</span></span></label>
          </div>
        </div> -->
        <!-- 房产 -->
        <!-- <div class="tag_title weui_cell">房产</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_house" id="paiding_house_1" class="check_tag">
            <label for="paiding_house_1" class="label_check_tag"><span><span>无房</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="paiding_house" id="paiding_house_3" class="check_tag">
            <label for="paiding_house_3" class="label_check_tag"><span><span>红本在手</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_house" id="paiding_house_4" class="check_tag">
            <label for="paiding_house_4" class="label_check_tag"><span><span>月供不足一次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_house" id="paiding_house_5" class="check_tag">
            <label for="paiding_house_5" class="label_check_tag"><span><span>月供6个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='6' type="radio" name="paiding_house" id="paiding_house_6" class="check_tag">
            <label for="paiding_house_6" class="label_check_tag"><span><span>月供7-12个月</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_house" id="paiding_house_7" class="check_tag">
            <label for="paiding_house_7" class="label_check_tag"><span><span>月供12-24个月</span></span></label>
          </div>
        </div> -->
        <!-- 车辆 -->
        <!-- <div class="tag_title weui_cell">车辆</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_car" id="paiding_car_1" class="check_tag">
            <label for="paiding_car_1" class="label_check_tag"><span><span>无车</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='3' type="radio" name="paiding_car" id="paiding_car_3" class="check_tag">
            <label for="paiding_car_3" class="label_check_tag"><span><span>全款车</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_car" id="paiding_car_4" class="check_tag">
            <label for="paiding_car_4" class="label_check_tag"><span><span>月供不足一次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_car" id="paiding_car_5" class="check_tag">
            <label for="paiding_car_5" class="label_check_tag"><span><span>月供6个月以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='6' type="radio" name="paiding_car" id="paiding_car_6" class="check_tag">
            <label for="paiding_car_6" class="label_check_tag"><span><span>月供7-12个月</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_car" id="paiding_car_7" class="check_tag">
            <label for="paiding_car_7" class="label_check_tag"><span><span>月供12-24个月</span></span></label>
          </div>
        </div> -->
        <!-- 保单 -->
        <!-- <div class="tag_title weui_cell">保单</div>
        <div inori-data='required' class="tag_wrap weui_cell">
          <div class="tag_container">
            <input form='base' value='1' type="radio" name="paiding_policy" id="paiding_policy_1" class="check_tag">
            <label for="paiding_policy_1" class="label_check_tag"><span><span>无保单</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='4' type="radio" name="paiding_policy" id="paiding_policy_4" class="check_tag">
            <label for="paiding_policy_4" class="label_check_tag"><span><span>6个月或以下</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='5' type="radio" name="paiding_policy" id="paiding_policy_5" class="check_tag">
            <label for="paiding_policy_5" class="label_check_tag"><span><span>6-12个月</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='6' type="radio" name="paiding_policy" id="paiding_policy_6" class="check_tag">
            <label for="paiding_policy_6" class="label_check_tag"><span><span>足一年两次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_policy" id="paiding_policy_7" class="check_tag">
            <label for="paiding_policy_7" class="label_check_tag"><span><span>足两年三次</span></span></label>
          </div>
          <div class="tag_container">
            <input form='base' value='7' type="radio" name="paiding_policy" id="paiding_policy_8" class="check_tag">
            <label for="paiding_policy_8" class="label_check_tag"><span><span>足三年四次</span></span></label>
          </div>
        </div> -->
      </div>
    <div class="file_uploader">
      <label for="file_upload" class="file_upload_placeholder" style="display:block;">上传附件如房产证、征信报告、保单等（非必需）
        <div class="file_add_icon">
          <img src="__PUBLIC__/res/u1919.png" alt="u1919">
        </div>
      </label>
      <input class="fileuploadinput" type="file" name="file" accept="image/*" form='file' id="file_upload" style="display:none;" >
    </div>
    <div class="fileList" id='fileList' style="display:flex;flex-wrap:wrap;"></div>

    <div class="n_required">
      <div class="tag_title weui_cell">补充说明</div>
      <textarea form='base' name="kehu_more" id="kehu_more" placeholder="资产情况/征信问题/行业/负债" style="padding:5px;text-indent:0;box-sizing:border-box;"></textarea>
    </div>

    <div class="required">
      <label for="weuiAgree1" class="weui-agree">
        <input id="weuiAgree1" type="checkbox" class="weui-agree__checkbox">
        <span class="weui-agree__text blue">
          我知悉沟通中禁止交换联系方式，否则愿意按公司规定受罚
        </span>
      </label>
      <label for="weuiAgree2" class="weui-agree">
        <input id="weuiAgree2" type="checkbox" class="weui-agree__checkbox">
        <span class="weui-agree__text">
          我知悉并同意评估令平台使用规则
        </span>
      </label>
    </div>
    <div class="weui-btn-area">
      <a id='post_button' class="weui-btn weui-btn_primary weui-btn_disabled" href="javascript:void(0);" id="showTooltips">确定</a>
    </div>
    <div style="height:2vh;width:100%;clear:both;"></div>

    <!-- 文件上传弹窗 -->
    <div id="file_upload_popup" class="weui-popup__container">
      <div class="weui-popup__overlay"></div>
      <div class="weui-popup__modal" style="padding: 40px 10px;">
        <div class="weui-loadmore">
          <i class="weui-loading"></i>
          <span class="weui-loadmore__tips">正在上传</span>
        </div>
      </div>
    </div>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery"></script>
  <script src="__PUBLIC__/script/common.js" common-data-1="{:U('Mix/dest')}"></script>
  <script src="__PUBLIC__/script/jquery-weui/dist/js/jquery-weui.min.js"></script>
  <script src="__PUBLIC__/script/jquery-weui/dist/js/city-picker.min.js"></script>

  <script id="post_script">
    // alert($(document).height())
    $(document).ready(() => {
      // 如果是iOS就允许多文件选定
      const isiOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
      if(isiOS) {
        $('#file_upload').attr('multiple', true)
      }
      // 同意选项才能确定
      $('#post_button').on({click: warnFromForm},{mes: '必须先同意使用守则'})
      $('#weuiAgree1').on('change', (evt)=> {
        console.log(`${evt.target.id} changed`)
        if($('#weuiAgree1').prop('checked') && $('#weuiAgree2').prop('checked')) {
          if($('#post_button').hasClass('weui-btn_disabled')) $('#post_button').removeClass('weui-btn_disabled')
          $('#post_button').off('click')
          $('#post_button').on({click: genForm},{})
        } else {
          if(!$('#post_button').hasClass('weui-btn_disabled')) $('#post_button').addClass('weui-btn_disabled')
          $('#post_button').off('click')
          $('#post_button').on({click: warnFromForm},{mes: '必须先同意使用守则'})
        }
      })
      $('#weuiAgree2').on('change', (evt)=> {
        console.log(`${evt.target.id} changed`)
        if($('#weuiAgree1').prop('checked') && $('#weuiAgree2').prop('checked')) {
          if($('#post_button').hasClass('weui-btn_disabled')) $('#post_button').removeClass('weui-btn_disabled')
          $('#post_button').off('click')
          $('#post_button').on({click: genForm},{})
        } else {
          if(!$('#post_button').hasClass('weui-btn_disabled')) $('#post_button').addClass('weui-btn_disabled')
          $('#post_button').off('click')
          $('#post_button').on({click: warnFromForm},{mes: '必须先同意使用守则'})
        }
      })
      // 进来默认选择一个选项
      let kehu_shouru_way = sessionStorage.getItem('kehu_shouru_way')
      if (kehu_shouru_way === null || kehu_shouru_way === undefined) {
        kehu_shouru_way = 'kehu_shouru_way_3'
      }
      $('.kehu_shouru_way').on('click', (evt) => {
        let value = $(evt.target).val()
        hideSomeItem(value)
      })
      $(`#${kehu_shouru_way}`).click().change()
      /**
      // file 变动侦测
      $('#file_upload').on('change', {id: 'file_upload'}, (evt) => {
        fileDete(evt.data.id)
        addMoreFile()
      })
      **/
      /* 新版文件上传逻辑，变动就上传 */
      $('#file_upload').on('change', {id: 'file_upload'}, (evt) => {
        // fileDete(evt.data.id)
        // addMoreFile()
        // window.top.postMessage({name: 'popup_file'}, '*')
        if($(evt.target)[0].files.length === 0) {
          return
        }
        let shouldReturn = false
        let shouldRemain = false
        $.each($(evt.target)[0].files, (index, item) => {
          if(item.size > 2100000) {
            $.toptip('文件过大！请选择2MB以下的文件','error')
            shouldReturn = true
            return
          }
          if(item.size > 200000) {
            shouldRemain = true
          }
        })
        if (shouldRemain && !shouldReturn) {
          const flag = confirm('文件体积超过200KB，上传耗时较长，确定上传？')
          if(!flag) {
            $.toptip('取消上传','success')
            shouldReturn = true
          }
        }
        if(shouldReturn) {
          $(evt.target).val(null).change()
          return
        }
        $(`#file_upload_popup`).popup()
        fileUpload().then((data) => {
          if (data.length <= 0) {
            return
          }
          let nameTempl = ``
          $.each(data, (index, item) => {
            nameTempl += `<div class = 'fileItem'><img src='${item}'></div>`
          })
          $('#fileList').append(nameTempl)
          $('#fileList .fileItem').each((index, item) => {
            $(item).off('click')
            $(item).on('click', (evt) => {
              evt.preventDefault()
              evt.stopPropagation()
              $.confirm("您确定要删除该图片吗?", "确认删除？", function() {
                $(evt.target).closest('.fileItem').remove()
              }, function() {
                return
              });

            })
          })
          $.toptip('点击图片可以删除图片', 1500, 'success')
          $('#file_upload').val(null).change()
          $.closePopup()
        }).catch((err) => {
          $(`#js-file_upload_popup_loading_text`).text(`上传失败！请检查网络后重试。`)
          $('#file_upload').val(null).change()
          setTimeout(()=>{$.closePopup()}, 1000)
        })
      })
    })
  </script>
  <script id="features">
    function warnFromForm (evt) {
      let mes
      if (evt.data.mes) {
        mes = evt.data.mes
      } else {
        mes = '请检查页面，必须先同意守则并填写完整表格'
      }
      $.toptip(mes, 'error')
      event.preventDefault()
      event.stopPropagation()
    }
    function hideSomeItem (type) {
      if (type === '工薪族' ) {
        if ($(`#kehu_shouru_way_1_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_1_only`).removeClass('hiddenBlock')
        if (!$(`#kehu_shouru_way_2_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_2_only`).addClass('hiddenBlock')
      } else if ( type === '自雇人士') {
        if (!$(`#kehu_shouru_way_1_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_1_only`).addClass('hiddenBlock')
        if ($(`#kehu_shouru_way_2_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_2_only`).removeClass('hiddenBlock')
      } else if ( type === '自由职业/无业') {
        if (!$(`#kehu_shouru_way_1_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_1_only`).addClass('hiddenBlock')
        if (!$(`#kehu_shouru_way_2_only`).hasClass('hiddenBlock')) $(`#kehu_shouru_way_2_only`).addClass('hiddenBlock')
      } else {
        $.toptip('出现未知选项，请联系管理员并说明本提示出现时的操作以方便为您提供帮助', 'error')
      }
    }
    function fileUpload () {
      const ajaxURL = String($('#fileUploadAjaxURL').val())
      // const fileList = $('#file').serializeArray()
      let fileList = []
      try {
        $(`[type='file']`).each((index, item) => {
          if (item.files.length > 0) {
            $.each(item.files, (subindex, subitem) => {
              fileList.push(item.files[subindex])
            })
          }
        })
      } catch (err) {
        $.toptip('文件上传发生错误')
        alert(err)
      }
      // const NewformData = new FormData($("#file")[0])
      // const formData = NewformData.getAll('file')


      // 动态添加表单，所以需要去除最后一项，后期处理一下ios特例，或者说安卓特例
      let fileURLArray = []
      // $.each(formData, (index, item) => {
      //   if (item.name === '') {
      //     formData.pop(index)
      //   }
      // })
      let promiseArray = []
      $.each(fileList, (index, item) => {
        if (item.name && !/image/.test(item.type)) {
          return
        }
        var formFile = new FormData();
        // 一定要append一个文本值，是不是一定要这个键值对我也没空验证了
        formFile.append("action", "Uh");
        formFile.append("file", item); //加入文件对象
        // alert($('#file_upload').get(0).files[0] === item)
        promiseArray.push( new Promise((resolve, reject) => {$.ajax(ajaxURL, {
          method: 'post',
          data: formFile,
          processData:false,
          dataType:"json",
          contentType: false,
          beforeSend: () => {
            $.toptip(`正在上传文件：${item.name}, 请等待`, 'success')
          }
        }).fail((err) => {
          $.toptip(`上传文件失败，请重试`, 'error')
          console.dir(err)
          reject(err)
          throw err
        }).done((res) => {
          if(res.message && (String(res.code) === '2' || String(res.code) === '3')) {
            $.toptip(`上传文件失败，服务器返回：${res.message}`, 'error')
            reject(new Error(`上传文件失败，服务器返回：${res.message}`))
            throw new Error(`上传文件失败，服务器返回：${res.message}`)
          } else if (String(res.code) === '2' || String(res.code) === '3') {
            $.toptip(`上传文件失败，服务器返回：${res}`, 'error')
            reject(new Error(`上传文件失败，服务器返回：${res}`))
            throw new Error(`上传文件失败，服务器返回：${res}`)
          }
        }).done((res) => {
          $.toptip(`文件 ${item.name} 上传成功`, 'success')
          fileURLArray.push(`${res.link}`)
          resolve(`文件 ${item.name} 上传成功`)
        })}))
      })
      return Promise.all(promiseArray).then(_ => {
        return fileURLArray
      })
    }
    function genForm (evt) {
      // 去掉没有选到的可选隐藏选项，方便序列化
      $('.hiddenBlock').each((index, item) => {
        if($(item).attr('id') === 'kehu_shouru_way_1_only') window.kehu_shouru_way_1_only = $(item).html()
        if($(item).attr('id') === 'kehu_shouru_way_2_only') window.kehu_shouru_way_2_only = $(item).html()
        $(item).html(null)
      })
      let baseFormValue = $('#base').serializeArray().filter((item) => {return item.name === 'kehu_more' || item.value !== ''})
      // 比对长度
      if (baseFormValue.length - 1 !== $(`[inori-data='required']`).length) {
        warnFromForm({data: {mes: '请检查页面是否填写完毕'}})
        $('.hiddenBlock').each((index, item) => {
          if($(item).attr('id') === 'kehu_shouru_way_1_only') $(item).html(window.kehu_shouru_way_1_only)
          if($(item).attr('id') === 'kehu_shouru_way_2_only') $(item).html(window.kehu_shouru_way_2_only)
        })
        $('#post_button').one({click: genForm},{})
        throw new Error(`baseFormValue.length为： ${baseFormValue.length}`)
      } else {
        baseFormValue = JSON.stringify(baseFormValue)
      }
      // 去除可能存在的旧临时表单项
      if($('#genFormItem').length > 0) $('#genFormItem').remove()
      if($('#genFormFileItem').length > 0) $('#genFormFileItem').remove()
      if($('#search_dataItemID').length > 0) $('#search_dataItemID').remove()
      if($('#search_dataItemData').length > 0) $('#search_dataItemData').remove()
      // 获取上传文件列表
      let fileArray = []
      $('#fileList .fileItem img').each((index, item) => {
        if (item.src && /^http:\/\/pgl.oaio.online\/Uploads\/web_user_data\//.test(item.src)) {
          fileArray.push(item.src)
        } else {
          return
        }
      })
      // 挂上提示事件
      $('#post_button').off('click')
      $('#post_button').on('click', (evt) => {
        evt.preventDefault()
        evt.stopPropagation()
        $.toptip(`正在提交，请勿重复点击`, 'success')
      })

      // 转换name-value paires Arr 为后端需要的KV格式
      let rawSeriArrStr = JSON.parse(sessionStorage.getItem('nextPingu'))
      let KVArr = []
      $.each(rawSeriArrStr, (index, item) => {
        if (item.name.indexOf("[") > -1) {
          if (item.name.match(/\[/g).length > 1) {
            // 多重数组……难受
            // 确定数组基准
            let mainIndex = item.name.replace(/\[.{1,}\]/, "")
            if (mainIndex === `8`) {
              // 确定8[0][0]
              if (item.name === `8[0][0]`) {
                if (!KVArr[8]) KVArr[8] = []
                if (!KVArr[8][0]) KVArr[8][0] = []
                KVArr[8][0][0] = item.value
              }
              // 确定8[0][1][formdata]为基准
               else {
                if (!KVArr[8]) KVArr[8] = []
                if (!KVArr[8][0]) KVArr[8][0] = []
                if (!KVArr[8][0][1]) KVArr[8][0][1] = {}
                if (!KVArr[8][0][1]['formdata']) KVArr[8][0][1]['formdata'] = []
                const Itemname = item.name.replace(/8\[0\]\[1\]\[formdata\]/, '')
                const nameIndex = Itemname.match(/\[\d{1,}\]/)
                const nameBase = Itemname.match(/\[\D{1,}\]/)
                console.log(Itemname)
                if (!KVArr[8][0][1]['formdata'][nameIndex]) KVArr[8][0][1]['formdata'][nameIndex] = {}
                KVArr[8][0][1]['formdata'][nameIndex][nameBase] = item.value
               }
            } else {
              $.toptip(`出现未知数据无法重构搜索条件，页面即将刷新!建议关闭页面重新开始搜索`, 'error')
              setTimeout(() => {
                location.reload(true)
              }, 1500)
              throw new Error(`出现关键错误`)
            }
          } else {
            // 看有没有对应数组
            let test111 = item.name.replace(/\[\d{1,}\]/, "")
            if(KVArr[test111]) {
              KVArr[test111].push(item.value);
            } else {
              KVArr[test111] = []
              KVArr[test111].push(item.value);
            }
          }
        } else {
          KVArr[item.name] = item.value
        }
      });

      let tempInput = `<input id='genFormItem' type='hidden' name='data' value='${baseFormValue}'>`
      let tempFileInput = `<input id='genFormFileItem' type='hidden' name='file' value='${fileArray.join(',')}'>`
      let tempIDInput = `<input id='search_dataItemID' type='hidden' name='search_data[web_id]' value='{$Think.session.user.web_id}'>`
      let tempSearchInput = `<input id='search_dataItemData' type='hidden' name='search_data[data]' value='${JSON.stringify(KVArr)}'>`
      let ajIDInput = `<input id='search_dataItemData' type='hidden' name='aj_id' value='${sessionStorage.getItem('shenheName')}'>`
      // debug信息查看
      let consoleValue = $('#file').append(tempInput).append(tempFileInput).append(tempIDInput).append(ajIDInput).append(tempSearchInput).serializeArray()
      console.log(consoleValue)
      // 全部东西都在file表单上边上传
      // 上传前在session里边设置标志，标志存在的话lastproduct会跳转到chatroom页面
      sessionStorage.setItem('jumpToRoom', 'true')
      $.toptip(`正在上传表单，图片较多的情况下请耐心等待`, 'success')
      $('#file').submit()
    }
    function writeBack (data) {
      if (typeof data === 'string') {
        try {
          data = JSON.parse(data)
        } catch (err) {
          throw new Error ('string parse err')
        }
      }
      // for (let item of data) {
      //   if(item.name === 'kehu_edu' || item.name === 'kehu_plan_point' || item.name === 'kehu_more') {
      //     $(`#${item.name}`).val(item.value)
      //   } else {
      //     let inputItem = $(`[name = '${item.name}'][value = '${item.value}']`)
      //     if (inputItem.length !== 1) {
      //       $.toptip('出现未知或重复选项，请联系管理员')
      //       throw new Error (`回填错误, [name = '${item.name}'][value = '${item.value}']`)
      //     } else {
      //       inputItem.click().change()
      //     }
      //   }
      // }
      // // 最后click上同意协议
      // $('#weuiAgree1').prop('checked', true).attr('readonly', true).change().attr('readonly', true)
      // $('#weuiAgree2').prop('checked', true).attr('readonly', true).change().attr('readonly', true)
      // 全部隐藏显示
      $('.container').empty()
      $('.container').append(`<div class="panel_wran">温馨提示：你已可前往留言</div>`)

      // $('#post_button').css('display', 'none')
      // $('#post_button').after(`<div style='height:46px;width:100%;'></div>`)
    }
    // 预览相关函数
    // function fileDete (id) {
    //   let fileList = $(`#${id}`)[0].files
    //   let nameArr = []
    //   let nameTempl = ``
    //   let sizeArr = []
    //   const maxSize = 1597152
    //   let tempSize = 0
    //   let preViewPromiseArr = []
    //   $.each(fileList, function (index, item) {
    //     nameArr.push(item.name)
    //     sizeArr.push(item.size)
    //     preViewPromiseArr.push(preview(item))
    //   })
    //   $.each(sizeArr, (index, item) => {
    //     tempSize += item
    //   })
    //   // $.each(nameArr, (index, item) => {
    //   //   nameTempl += `<div class = 'fileItem'>${item}</div>`
    //   // })
    //   // if(tempSize <= maxSize) $('#fileList').append(nameTempl)
    //   // else {
    //   //   $.toptip('超过最大文件限制！')
    //   //   $('#file_upload').val(null).change()
    //   // }
    //   Promise.all(preViewPromiseArr).then((data) => {
    //     $.each(data, (index, item) => {
    //       nameTempl += `<div class = 'fileItem'><img src='${item}'></div>`
    //     })
    //     return nameTempl
    //   }).then((nameTempl) => {
    //     console.log(nameTempl)
    //     if(tempSize <= maxSize) $('#fileList').append(nameTempl)
    //     else {
    //       $.toptip('超过最大文件限制！')
    //       $('#file_upload').val(null).change()
    //     }
    //   }).catch((err) => {
    //     // 错误处理
    //     $.toptip('上传失败!请重试', 'error')
    //   })
    // }
    // function addMoreFile () {
    //   const currentID = $('.file_upload_placeholder').attr('for')
    //   const newID = `${currentID}1`
    //   $('.file_upload_placeholder').attr('for', newID)
    //   const templ = `<input multiple class='fileuploadinput' type="file" accept="image/png,image/gi,image/jpeg" name="file" form='file' id="${newID}" style="display:none;" >`
    //   $('.file_uploader').append(templ)
    //   $(`#${newID}`).on('change', {id: `${newID}`}, (evt) => {
    //     fileDete(evt.data.id)
    //     addMoreFile()
    //   })
    // }
  </script>
  <!-- write bakc -->
  <script>
    let data = '' || `{$web_data.data}`;// 后端填在后边
    if (data !== '') {
      writeBack(data)
    } else {
      console.log('没有发现有效数据，回填停止')
    }
  </script>
  <!-- 图片预览 -->
  <!-- <script>
    function preview(file) {
      return new Promise((resolve, reject) => {
        var reader = new FileReader()
        reader.readAsDataURL(file)
        reader.onload = function(evt) {
          resolve(evt.target.result)
        }
        reader.onerror = (err) => {
          reject(err)
        }
      })
    }
  </script> -->
</body>
</html>